// 插件式注册全局组件

import type { App, Plugin } from 'vue';
import Skeleton from './XtxUI/Skeleton/Skeleton.vue';
import Button from './XtxUI/Button/index.vue';
import Sider from './XtxUI/Slider/index.vue';
import More from './XtxUI/More/index.vue';
import Bread from './XtxUI/Bread/index.vue';
import BreadItem from './XtxUI/Bread/Item.vue';
import ImageView from './XtxUI/ImageView/index.vue';
import myButton from './myButton/index.vue';
import sKu from './XtxUI/Sku/index.vue';
import checkBox from './XtxUI/CheckBox/index.vue';
import count from './XtxUI/Count/index.vue';
import dialog from './XtxUI/Dialog/index.vue';
import city from './XtxUI/City/index.vue';
import tabs from './XtxUI/Tabs/index.vue';
import tabplane from './XtxUI/Tabs/pane.vue';
const XtxUI: Plugin = {
  install(app: App) {
    app.component(`XtxSkeleton`, Skeleton);
    app.component('XtxButton', Button);
    app.component('XtxSider', Sider);
    app.component('XtxMore', More);
    app.component('XtxBread', Bread);
    app.component('XtxBreadItem', BreadItem);
    app.component('XtxImageView', ImageView);
    app.component('XtxsKu', sKu);
    app.component('XtxCheckBox', checkBox);
    app.component('XtxCount', count);
    app.component('XtxDialog', dialog);
    app.component('Xtxcity', city);
    app.component('XtxTabs', tabs);
    app.component('XtxTabPane', tabplane);
  },
};

export const MyUI: Plugin = {
  install(app: App) {
    app.component('MyButton', myButton);
  },
};

export default XtxUI;
